package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MEMORIAL database table.
 * 
 */
@Entity
@NamedQuery(name="Memorial.findAll", query="SELECT m FROM Memorial m")
public class Memorial implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="MEMORIAL_MEMID_GENERATOR", sequenceName="SEQ2")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="MEMORIAL_MEMID_GENERATOR")
	@Column(name="MEM_ID")
	private Long memId;

	@Column(name="ACCEPT_USER_ID")
	private BigDecimal acceptUserId;

	@Column(name="CLIENT_ID")
	private BigDecimal clientId;

	@Temporal(TemporalType.DATE)
	@Column(name="CREATE_DATE")
	@JSONField(format="yyyy-MM-dd")
	private Date createDate;

	@Temporal(TemporalType.DATE)
	@Column(name="MEM_DATE")
	@JSONField(format="yyyy-MM-dd")
	private Date memDate;

	@Column(name="MEMORIAL_IS_DEL")
	private String memorialIsDel;

	private String remarks;

	@Column(name="\"TYPE\"")
	private String type;

	public Memorial() {
	}

	public Long getMemId() {
		return this.memId;
	}

	public void setMemId(Long memId) {
		this.memId = memId;
	}

	public BigDecimal getAcceptUserId() {
		return this.acceptUserId;
	}

	public void setAcceptUserId(BigDecimal acceptUserId) {
		this.acceptUserId = acceptUserId;
	}

	public BigDecimal getClientId() {
		return this.clientId;
	}

	public void setClientId(BigDecimal clientId) {
		this.clientId = clientId;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getMemDate() {
		return this.memDate;
	}

	public void setMemDate(Date memDate) {
		this.memDate = memDate;
	}

	public String getMemorialIsDel() {
		return this.memorialIsDel;
	}

	public void setMemorialIsDel(String memorialIsDel) {
		this.memorialIsDel = memorialIsDel;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

}